<%@page import="uniwill.user.UserManagerSpringHelper"%>
<%@page import="java.sql.SQLException"%>
<%@page import="uniwill.user.UserManager"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
	pageEncoding="EUC-KR"%>
<%
	String userId = request.getParameter("userId");
	if (userId == null || userId.trim().equals("")) {
		response.sendRedirect("user_list.jsp");
		return;
	}
	UserManager manager=
			UserManagerSpringHelper.getUserManager(getServletContext());
	try {
		int result = manager.remove(userId);
		response.sendRedirect("user_list.jsp");
	} catch (SQLException e) {
		response.sendRedirect("user_view.jsp?userId="+userId);
		return;
	}
%>